|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Grammar
org.eclipse.vtp.framework.interactions.voice.vxml.ExternalGrammar
public class ExternalGrammar
The ExternalGrammar class represents the <grammar> VXML
element with a reference to an external grammar file.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ExternalGrammar(java.lang.String mode,
java.lang.String grammarURI)
Creates a new ExternalGrammar. |
|
ExternalGrammar(java.lang.String mode,
java.lang.String grammarURI,
java.lang.String grammarType)
Creates a new ExternalGrammar. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
detectGrammarType()
Attempts to detect the MIME type for this grammar. |
java.lang.String |
getGrammarType()
Returns the MIME type of the external grammar file. |
java.lang.String |
getGrammarURI()
Returns the URI of the external grammar file. |
void |
setGrammarType(java.lang.String grammarType)
Sets the MIME type of the external grammar file. |
void |
setGrammarURI(java.lang.String grammarURI)
Sets the URI of the external grammar file. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this grammar to the supplied set. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.voice.vxml.Grammar |
|---|
getMode, setMode, writeChildren, writeWidget |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExternalGrammar(java.lang.String mode,
java.lang.String grammarURI)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
mode - The mode of the grammar (dtmf or voice).grammarURI - The URI of the external grammar file.
java.lang.IllegalArgumentException - If the specified mode is not one of "dtmf"
or "voice".
java.lang.IllegalArgumentException - If the specified grammar URI is empty.
java.lang.NullPointerException - If the specified mode is null.
java.lang.NullPointerException - If the specified grammar URI is
null.
public ExternalGrammar(java.lang.String mode,
java.lang.String grammarURI,
java.lang.String grammarType)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
mode - The mode of the grammar (dtmf or voice).grammarURI - The URI of the external grammar file.grammarType - The MIME type of the external grammar file.
java.lang.IllegalArgumentException - If the specified mode is not one of "dtmf"
or "voice".
java.lang.IllegalArgumentException - If the specified grammar URI is empty.
java.lang.IllegalArgumentException - If the specified grammar type is empty.
java.lang.NullPointerException - If the specified mode is null.
java.lang.NullPointerException - If the specified grammar URI is
null.| Method Detail |
|---|
public java.lang.String getGrammarURI()
public java.lang.String getGrammarType()
public void setGrammarURI(java.lang.String grammarURI)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
grammarURI - The URI of the external grammar file.
java.lang.IllegalArgumentException - If the specified grammar URI is empty.
java.lang.NullPointerException - If the specified grammar URI is
null.
public void setGrammarType(java.lang.String grammarType)
throws java.lang.IllegalArgumentException
grammarType - The MIME type of the external grammar file.
java.lang.IllegalArgumentException - If the specified grammar type is empty.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Grammar
writeAttributes in class Grammarattributes - The attribute set to write to.protected java.lang.String detectGrammarType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||